import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/base-sixreal/plot/page',
    method: 'post',
    data
  })
}

export function Divisionlist() {
  return request({
    url: '/base-sixreal/division/list',
    method: 'get'
  })
}

export function findlist(pageNum,pageSize) {
  return request({
    url: '/base-sixreal/plot/list?pageNum='+pageNum+"&pageSize="+pageSize,
    method: 'get'
  })
}

export function findAll(data) {
  return request({
    url: '/base-sixreal/plot/findAll',
    method: 'get',
    data
  })
}

export function update(data) {
  return request({
    url: '/base-sixreal/plot/update',
    method: 'post',
    data
  })
}

export function add(data) {
  return request({
    url: '/base-sixreal/plot/add',
    method: 'post',
    data
  })
}

export function divisionList() {
  return request({
    url: '/base-sixreal/division/list',
    method: 'get'
  })
}

export function del(id) {
  return request({
    url: '/base-sixreal/plot/delete/'+id,
    method: 'get'
  })
}

export function findPloat(id) {
  return request({
    url: '/base-sixreal/plot/findPlot/' + id,
    method: 'get'
  })
}

export function findAllCount(data) {
  return request({
    url: '/base-sixreal/plot/findAllCount/',
    method: 'get',
    data
  })
}

export function findPopulationCount(data) {
  return request({
    url: '/base-sixreal/plot/findPopulationCount/',
    method: 'get',
    data
  })
}

export function findHouseTypeCount(data) {
  return request({
    url: '/base-sixreal/plot/findHouseTypeCount/',
    method: 'get',
    data
  })
}

export function findPlotLists(data) {
  return request({
    url: '/base-sixreal/plot/findPlotLists/',
    method: 'get',
    data
  })
}

export function findPersonType(data) {
  return request({
    url: '/base-sixreal/population/findPersonType/',
    method: 'get',
    data
  })
}

